package com.test;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Rect;
import android.view.View;


public class DemoView extends View{
	public DemoView(Context context){
		super(context);
	}

	@Override protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);

		// custom drawing code here
		// remember: y increases from top to bottom
		// x increases from left to right
	//	int x = 0;
	//	int y = 0;
		Paint paint = new Paint();
		paint.setStyle(Paint.Style.FILL);

		Bitmap _scratch = BitmapFactory.decodeResource(getResources(), R.drawable.quai7);
        canvas.drawColor(Color.BLACK);
        canvas.drawBitmap(_scratch, 10, 10, null);

		// draw a solid blue circle
		int x = 75;
        int y = 185;
		paint.setColor(Color.RED);
		canvas.drawCircle(100, 150, 15, paint);
		

		// draw blue circle with antialiasing turned on
		paint.setAntiAlias(true);
		paint.setColor(Color.RED);
		canvas.drawCircle(60, 20, 15, paint);

	

	}
}    